<template>
  账户：<input type="text" v-model="loginForm.usename"><br>
  密码：<input type="password" v-model="loginForm.password"><br>
  <button @click="reset()">重置</button>
</template>

<script setup>
  import { reactive } from 'vue'
  const loginForm = reactive({
    usename:'',
    password:''
  })
  const reset = () => {
    loginForm.usename = ''
    loginForm.password = ''
  }
</script>

<style>

</style>